package com.ynet.middleground.contract.bean;

import java.util.List;
import java.util.Map;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @description: 模板生成参数类
 * @author: yangbh
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "模板生成参数类", description = "模板生成参数类")
public class TemplateCommReq extends BaseReqObj {

    private static final long serialVersionUID = 2552596046197500383L;

    /**
     * 模板Id
     */
    @NotNull(message = "模板Id不能为空")
    @ApiModelProperty(value = "模板Id", notes = "模板Id", dataType = "Integer", required = true)
    private Integer templateId;

    /**
     * 模板内参数
     */
    @ApiModelProperty(value = "模板内参数", notes = "模板内参数", dataType = "java.util.Map")
    private Map<String, Object> templateParams;

    @Valid
    @ApiModelProperty(value = "表格合并单元格参数", notes = "表格合并单元格参数")
    private List<MergeCellTableInfo> tableMergeCells;

}
